﻿namespace TestUp.Models.ShortEntities
{
    public class ShortPermission
    {
        public string PermissionName { get; set; }
        public bool CanSeeAdminPanel { get; set; }
        public bool CanManageGroups { get; set; }
        public bool CanManageTests { get; set; }
        public bool CanPassTests { get; set; }
        public int PermissionId { get; set; }

        public Permission ConvertToEntity()
        {
            var permission = EntitiesConverter.ToEntity<Permission, ShortPermission>(this);

            return permission;
        }
    }
}